/*
 *  decodehelp.h - decode test help
 *
 *  Copyright (C) 2011-2014 Intel Corporation
 *    Author: Halley Zhao<halley.zhao@intel.com>
 *            Xin Tang<xin.t.tang@intel.com>
 *            Lin Hai<hai1.lin@intel.com>
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public License
 *  as published by the Free Software Foundation; either version 2.1
 *  of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free
 *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 *  Boston, MA 02110-1301 USA
 */
#ifndef decodehelp_h
#define decodehelp_h

#include <stdint.h>
#include <string>

typedef struct DecodeParameter {
    char* inputFile;
    int width;
    int height;
    short renderMode;
    short waitBeforeQuit;
    uint32_t renderFrames;
    uint32_t renderFourcc;
    std::string outputFile;
} DecodeParameter;

bool processCmdLine(int argc, char** argv, DecodeParameter* parameters);

bool possibleWait(const char* mimeType, const DecodeParameter* parameters);

#endif //decodehelp_h
